<?php
	require_once("db_functions.php");
	
	if( !isset($_POST["feedid"]) || !isset($_POST["filterstring"]) || !isset($_POST["userid"]) ){
		die("");
	}
	$feedid = $_POST["feedid"];
	$filterstring = $_POST["filterstring"];
	$userid = $_POST["userid"];
	$filterid = CreateFilter($userid, $feedid, $filterstring);
	if ( $filterid !== null )
	{
		echo $filterid.":".$filterstring;
	}
	else
	{
		echo $filterid;
	}
?>